-- GENERATED SPELL FOR [Dragonmaw Ascendant] --


function spell0_22253(pUnit, Event) --@Cleave,n/a--
pUnit:FullCastSpellOnTarget(15496,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22253', 601, 1)
end

function spell1_22253(pUnit, Event) --@Mortal Strike,n/a--
pUnit:FullCastSpellOnTarget(17547,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22253', 5316, 1)
end

function spell2_22253(pUnit, Event) --@Uppercut,n/a--
pUnit:FullCastSpellOnTarget(10966,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_22253', 634, 1)
end

function Sorts_22253(pUnit, Event)
local choix_sorts_22253 = math.random(0, 2)
if choix_sorts_22253 == 0 then
pUnit:RegisterEvent('spell0_22253', 1, 1)
end
if choix_sorts_22253 == 1 then
pUnit:RegisterEvent('spell1_22253', 1, 1)
end
if choix_sorts_22253 == 2 then
pUnit:RegisterEvent('spell2_22253', 1, 1)
end
end

function mob22253_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_22253', math.random(1500, 3000), 1)
end

function mob22253_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22253_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob22253_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(22253, 1, 'mob22253_Action')
RegisterUnitEvent(22253, 2, 'mob22253_Leave')
RegisterUnitEvent(22253, 3, 'mob22253_Kill')
RegisterUnitEvent(22253, 4, 'mob22253_Die')
